package com.tebiecloud.store.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 员工表
 * @author tebie
 * @date 2019-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StoreStaff extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "store_staff_id", type = IdType.ID_WORKER)
    private Long storeStaffId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 门店id
     */
    private Long storeId;

    /**
     * 名称
     */
    private String name;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 头像
     */
    private String headimgurl;

    /**
     * 角色编码
     */
    private String roleCode;

    /**
     * 入职时间
     */
    private Date entryTime;

    /**
     * 性别：值为1时是男性，值为2时是女性，值为0时是未知
     */
    private Integer sex;

    /**
     * 切换为当前门店时间
     */
    private Date switchTime;

}
